package com.liwei.thread.testwaitnotify;

class MyThreadTwo extends Thread {
    Object lock;

    public MyThreadTwo(Object o) {
        lock = o;
    }

    public void run() {
        synchronized (lock) {
            System.out.println("Enter MyThreadTwo and notify");
            lock.notifyAll();
        }
    }
}